cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

find_package(LibGenutils REQUIRED)
include_directories(${LibGenutils_INCLUDE_DIRS})
set(LIBS ${LibGenutils_LIBRARIES})

find_package(LibL2 REQUIRED)
include_directories(${LibL2_INCLUDE_DIRS})
list(APPEND LIBS ${LibL2_LIBRARIES})

find_package(LibTimeutils REQUIRED)
include_directories(${LibTimeutils_INCLUDE_DIRS})
list(APPEND LIBS ${LibTimeutils_LIBRARIES})

find_package(PNG REQUIRED)
include_directories(${PNG_INCLUDE_DIRS})
list(APPEND LIBS ${PNG_LIBRARIES})

add_executable(l2brsgen
  main_l2brsgen.c
  l2brsgen_input.c
  put_l2brs.c
)

target_link_libraries(l2brsgen ${LIBS})

install (TARGETS l2brsgen DESTINATION bin)
